<?php if (isset($foto)): ?>

<?php echo $form->create('Foto', array('url'=>$this->here, 'id'=>'fotoEditForm')) ?>

	<?php echo $form->hidden('hash', array('value'=>$foto['Foto']['hash'])) ?>

	<img src="<?php echo $foto['Fotopreview']['path'] ?>" />
	<?php echo $form->input('alt', array('type'=>'text', 'size'=>'40', 'label'=>'описание', 'value'=>$foto['Foto']['alt'])) ?>

<?php echo $form->end(__('save', true)) ?>


<?php endif ?>
